package org.dromara.pe.domain.bo;

import org.dromara.pe.domain.TaskArrangeInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 预约排班管理业务对象 phy_pe_task_arrange_info
 *
 * @author Lion Li
 * @date 2024-09-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TaskArrangeInfo.class, reverseConvertGenerate = false)
public class TaskArrangeInfoBo extends BaseEntity {

    /**
     * 逻辑主键
     */
    @NotNull(message = "逻辑主键不能为空", groups = { EditGroup.class })
    private Long arrangeId;

    /**
     * 体测任务主键
     */
//    @NotNull(message = "体测任务主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 排班名称
     */
//    @NotBlank(message = "排班名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String arrangeName;

    /**
     * 测试地点主键
     */
//    @NotNull(message = "测试地点主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaId;

    /**
     * 体测地点
     */
//    @NotBlank(message = "体测地点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaName;

    /**
     * 场地类型
     */
    private String scopeTypeId;

    /**
     * 场地类型名称
     */
    private String scopeTypeName;

    /**
     * 测试项目主键集合
     */
    private String scopeIds;

    /**
     * 测试项目名称集合
     */
    private String itemNames;

    /**
     * 权限范围 ClassId
     */
    private String rangeInfo;

    /**
     * 开始安排日期
     */
//    @NotBlank(message = "开始安排日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startArrangeDate;

    /**
     * 结束安排日期
     */
//    @NotBlank(message = "结束安排时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endArrangeDate;

    /**
     * 性别限制  0 男  1女  2不限制
     */
//    @NotBlank(message = "性别限制  0 男  1女  2不限制不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sexLimit;

    /**
     * 安排人数
     */
//    @NotNull(message = "安排人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long arrangeNum;

    /**
     * 说明
     */
//    @NotBlank(message = "说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String notes;

    /**
     * 是否启用  0 启用  1不启用
     */
//    @NotBlank(message = "是否启用  0 启用  1不启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isEnable;

    /**
     * 排班开始时间
     */
    private Time startArrangeTime;


    /**
     * 排班结束时间
     */
    private Time endArrangeTime;

    private Long classId;

    private String taskName;

    /**
     * 排班日期
     */
//    private Date arrangeDate;

//    private String arrangeDateS;



}
